﻿
@using Abp.Extensions
@using Abp.Application.Services.Dto
@using KDS.Mes.Web.Models.Common.Modals
@using KDS.Mes.Web.Models.Factorys

@model CreateOrEditFactoryModalViewModel

@* 初始化头部 *@
@Html.Partial("~/Views/Common/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel(Model.IsEditMode ? (L("EditFactory") + ": " + Model.Factory.FactoryName) : L("CreateFactory")))


<!--html代码区域-->
<div class="modal-body">
    <form name="factoryInformationsForm"   role="form" novalidate class="form-validation">
 <input type="hidden" name="Id" value="@Model.Factory.Id" />
 <div>
            
               
	     <div hidden="hidden">           
            @if (Model.IsEditMode)
            {
                <input type="hidden" name="Id" value="@Model.Factory.Id"/>
            }
        </div>
	                  
               
     <div class="form-group">
         <label>@L("FactoryName") <span class="required"> * </span>	 	</label>
         <input class="maxlength-handler form-control @(Model.Factory.FactoryName.IsNullOrEmpty() ? "" : " edited")" type="text" name="FactoryName" value="@Model.Factory.FactoryName" required maxlength="20" />
         
     </div>
     <div class="form-group">
         <label>@L("FactoryCode")   <span class="required"> * </span>	 	</label>
         <input class="maxlength-handler form-control @(Model.Factory.FactoryCode.IsNullOrEmpty() ? "" : " edited")" type="text" name="FactoryCode" value="@Model.Factory.FactoryCode" required maxlength="20" />
        
     </div>
  	@*<div class="form-group form-md-line-input form-md-floating-label  ">
            <input class="maxlength-handler form-control @(Model.BasicFactory.FactoryName.IsNullOrEmpty() ? "" : " edited")" type="text" name="FactoryName" value="@Model.BasicFactory.FactoryName"	 required 		maxlength="20"  />			
            <label>@L("FactoryName")   <span class="required"> * </span>	 	</label>
        </div>*@
   
	                  
               
  	@*<div class="form-group form-md-line-input form-md-floating-label  ">
            <input class="maxlength-handler form-control @(Model.BasicFactory.FactoryCode.IsNullOrEmpty() ? "" : " edited")" type="text" name="FactoryCode" value="@Model.BasicFactory.FactoryCode"	 required 		maxlength="20"  />			
            <label>@L("FactoryCode")   <span class="required"> * </span>	 	</label>
        </div>*@
   
	                  
            </div>
    </form>
</div>
@Html.Partial("~/Views/Common/Modals/_ModalFooterWithSaveAndCancel.cshtml")
 
